{extend name="panel/layout" /}
{block name="main"}
<div class="profile-header">
    <div class="profile-cover">
        <div class="text-center">
            <img class="img-circle"
                 src="http://q1.qlogo.cn/g?b=qq&nk={$info.uin}&s=160" alt="avatar">
            <h3 class="text-info m-b-lg" style="margin-top:15px;"><i class="fa fa-qq"></i> {$info.uin}</h3>

        </div>
    </div><!-- .profile-cover -->

    <div class="promo-footer">
        <div class="row no-gutter">
            <div class="col-xs-6 promo-tab">
                <div class="text-center">
                    <small>Q Q状态</small>
                    <h4 class="m-0 m-t-xs">{:getQqZt($info.zt)}&nbsp;<br><a href="{:url('qqAdd')}?qid={$info.qid}"
                                                                            class="btn-xs btn-info"
                                                                            style="display: initial;">更新密码</a>
                    </h4>
                </div>
            </div>
            <div class="col-xs-6 promo-tab">
                <div class="text-center">
                    <small>COOKIE状态</small>
                    <h4 class="m-0 m-t-xs">{if condition="$info.cookiezt"}<font
                            color="red">需更新</font>{else}<font
                            color="green">正常</font>{/if}
                        <br><a href="{:url('qqAdd')}?qid={$info.qid}"
                               class="btn-xs btn-info" style="display: initial;">更新COOKIE</a>
                    </h4>
                </div>
            </div>
        </div>
    </div><!-- .promo-footer -->
</div>
<div class="row" style="margin-top: 20px;">
    <div class="col-md-12">
        <div class="widget">
            <header class="widget-header">
                <h4 class="widget-title">
                    辅助功能
                </h4>
            </header><!-- .widget-header -->
            <hr class="widget-separator">
            <div class="widget-body table-responsive">
                <table class="table table-hover table-striped">
                    <thead>
                    <tr>
                        <th class="text-center">功能名称</th>
                        <th class="text-center">到期时间</th>
                        <th class="text-center">上次运行</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td class="text-center">自动更新</td>
                        {if condition="strtotime($info['autotime']) gt time()"}
                        <td class="text-center">
                            {$info.autotime}
                        </td>
                        <td class="text-center">{$info.lastauto}</td>
                        {else/}
                        <td class="text-center" colspan="2">未开启 <a href="?action=auto" class="btn-xs btn-success"
                                                                   style="display: initial;"
                                                                   onclick="return confirm('确认花费{:config('zz_price_auto')}金币开启一月自动更新？');">点击开启</a>
                        </td>
                        {/if}
                    </tr>
                    <tr>
                        <td class="text-center">自动检测</td>
                        {if condition="strtotime($info['yc_time']) gt time()"}
                        <td class="text-center">
                            {$info.yc_time}
                        </td>
                        <td class="text-center">{$info.last_yc}</td>
                        {else/}
                        <td class="text-center" colspan="2">未开启 <a href="?action=yc" class="btn-xs btn-success"
                                                                   style="display: initial;"
                                                                   onclick="return confirm('确认花费{:config('zz_price_yc')}金币开启一月自动检测？');">点击开启</a>
                        </td>
                        {/if}
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="col-md-12">
        <div class="widget">
            <header class="widget-header">
                <h4 class="widget-title">
                    {$info.uin}-订单列表
                    <span class="pull-right">
                    <label class="label pull-right">
                        <a href="{:url('order')}?qid={$info.qid}" class="btn-xs btn-warning"><i
                                class="fa fa-plus"></i> </a>
                    </label>
                    </span>
                </h4>
            </header><!-- .widget-header -->
            <hr class="widget-separator">
            <div class="widget-body table-responsive">
                <table class="table table-hover table-striped">
                    <thead>
                    <tr>
                        <th class="text-center">代挂项目</th>
                        <th class="text-center">到期时间</th>
                        <th class="text-center">状态</th>
                        <th class="text-center">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {if condition="config('zz_quan_api')"}
                    <tr>
                        <td class="text-center"> 其它功能</td>
                        <td class="text-center" colspan="2"><a href="?action=quan"
                                                               class="btn-xs btn-success">一键拉圈圈99+</a>
                        </td>
                    </tr>
                    {/if}
                    {volist name="$orderList" id="order"}
                    <tr>
                        <td class="text-center">{$order.name}</td>
                        <td class="text-center">{$order.endtime}</td>
                        <td class="text-center">
                            {if condition="$order.zt eq 0"}
                            <font color="green">加速中</font>
                            {elseif condition="$order.zt eq 1"}
                            <font color="#d2691e">补挂中</font>
                            {elseif condition="$order.zt eq 2"}
                            <font color="#red">已关闭</font>
                            {else}
                            <font color="#red">未知</font>
                            {/if}
                        </td>
                        <td class="text-center">

                            {if condition="$order.zt eq 1"}
                            <a href="?action=qxbu&tid={$order.tid}" class="btn-xs btn-warning">取消补挂</a>
                            {else}
                            <a href="?action=bu&tid={$order.tid}" class="btn-xs btn-info">申请补挂</a>
                            {/if}
                            {if condition="$order.zt eq 2"}
                            <a href="?action=on&tid={$order.tid}" class="btn-xs btn-success">开启</a>
                            {else}
                            <a href="?action=off&tid={$order.tid}" class="btn-xs btn-danger">关闭</a>
                            {/if}

                        </td>

                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{/block}

